package infaraway.Factory.Factory.Product;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by :Infaraway
 * DATE : 2017/4/27
 * Time : 13:23
 * Funtion :
 */
public class Pizza {
    //每一份pizza都有以下四个属性
    String name;
    String dough;
    String sauce;
    List topping = new ArrayList<>();


    public void prepare(){
        System.out.println("prepare pizza..."+ name);

        System.out.println("dough...");
        System.out.println("sauce...");
        System.out.println("topping...");
        for (int i = 0; i < topping.size(); i++) {
            System.out.println("..."+topping.get(i));
        }
    }

    public void bake(){
        System.out.println("bake pizza...");
    }

    public void cut(){
        System.out.println("cut pizza...");
    }

    public void box(){
        System.out.println("box pizza...");
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }
}
